package com.henushang.ranking.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.henushang.ranking.dao.WebsiteInfoDao;
import com.henushang.ranking.domain.WebsiteInfo;
import com.henushang.ranking.service.WebsiteService;

@Service("websiteService")
public class WebsiteServiceImpl implements WebsiteService {

    @Autowired
    private WebsiteInfoDao websiteInfoDao;

    @Override
    public WebsiteInfo getById(String id) {
        return websiteInfoDao.getOne(id);
    }

    @Override
    public List<WebsiteInfo> getWebsiteList(Map<String, Object> queryMap) {
        return websiteInfoDao.getListByQueryMap(queryMap);
    }
}
